IMotion.PowerAxis 方法

啟用或停用軸的運作。

命名空間IntervalZero.KINGSTAR.Base.Api

組合: IntervalZero.KINGSTAR.Base.Api (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

語法

C#VB
KsCommandStatus PowerAxis(
       int Index,
       bool Enable,
       bool EnablePositiveDirection,
       bool EnableNegativeDirection
)
Function PowerAxis(
       Index As Integer,
       Enable As Boolean,
       EnablePositiveDirection As Boolean,
       EnableNegativeDirection As Boolean
) As KsCommandStatus

參數

Index [in]

型別:int

軸索引。索引以 0 為起始;別名將影響此參數。

 

Enable [in]

型別:bool

true:啟用軸;false:停用軸。

 

EnablePositiveDirection [in]

型別:bool

true:使軸朝正方向移動。

 

EnableNegativeDirection [in]

型別:bool

true:使軸朝負方向移動。

回傳值

型別:KsCommandStatus

回傳 KsCommandStatus 類別。

備註

此函式可用來啟動或停止伺服馬達並防止軸超程。

範例

C#
N/A

參見

IMotion 介面

IntervalZero.KINGSTAR.Base.Api 命名空間